import { https } from '../utils/https'
import type { ProfileDetail, ProfileParams } from '../types/menber'

// 获取个人信息
export const getMenberProfile = () => {
  return https<ProfileDetail>({
    method: 'GET',
    url: '/member/profile',
  })
}
// 修改个人信息
export const putMemberProfileAPI = (data: ProfileParams) => {
  return https({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
